package com.xinqi.modules.course.course.manager;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.course.course.domain.CourseEntity;
import org.springframework.transaction.annotation.Transactional;

/**
 * 课程表管理层
 *
 * @author: system
 * @date: 2023/10/25
 */
public interface CourseManager extends BaseService<CourseEntity> {

    /**
     * 根据id查询 课程表数据
     */
    CourseEntity findById(Long id);

    /**
     * 根据id删除 课程表数据
     */
    @Transactional(rollbackFor = Exception.class)
    boolean deleteById(Long id);
}
